package grape.crm.rest.customerrelation.form;
import grape.common.rest.form.BaseForm;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
/**
 * <p>
 * 客户关系表
 * </p>
 *
 * @author yangwei
 * @since 2020-09-14
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="客户关系添加表单对象")
public class CustomerRelationCreateForm extends BaseForm {

    private static final long serialVersionUID = 1L;

    @NotEmpty(message="客户编号不能为空")
    @ApiModelProperty(value = "客户编号",required = true)
    private String customerCode;

    @NotEmpty(message="另一个客户编号不能为空")
    @ApiModelProperty(value = "另一个客户编号",required = true)
    private String anotherCustomerCode;

    @NotEmpty(message="关系id，不能为空")
    @ApiModelProperty(value = "关系id，描述为客户是另一个客户的关系，如：张三是李四的父亲",required = true)
    private String relationId;

    @ApiModelProperty(value = "关系详情id")
    private String relationDetailId;



}
